<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>平台管理-组织结构</title>
    <link href="${path }/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path }/radar/configurationModel/css/add_index.css" rel="stylesheet" type="text/css">
    <link href="${path }/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="${path }/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path }/js/user_js.js"></script>
    <script src="${path }/common/plugins/bootstrap/js/bootstrap.js"></script>
    <script src="${path }/common/plugins/layer/layer.js"></script>
    <script src="${path }/common/plugins/autocomplete/jquery.autocomplete.js"></script>
    <link href="${path }/common/plugins/autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <script src="${path }/js/Validform.js"></script>
</head>
<body>
<input type="hidden" id="partNames" value="${partNames }"/>
<input type="hidden" id="indicatorId" value="${indVO.indicatorId }"/>
<input type="hidden" id="indTypeName" value="${indVO.lookupCdePO.cdeName }"/>
<input type="hidden" id="indicatorsType" value="${indVO.lookupCdePO.lookupCode }"/>
<div style="margin-bottom:35px;" id="indicatorForm">
    <div class="content_condition contentselect">
    	<!-- 存放所有平台信息 -->
        <div class="content_group" id="platform" style="display: none;">
            <ul class="checkhide">
            	<c:forEach items="${listPlatform }" var="plat">
	                <li><input type="checkbox" onclick="platformThreshold(this)" value="${plat.platformId }"/>${plat.name }</li>
            	</c:forEach>
            </ul>
        </div>
        <div class="content_group">
            <div class="span4">
            <label class="control-label">指标项名称:</label>
            <div class="controls">
                <input id="indicatorsName" type="text" onblur="checkNotNull(this)" value="${indVO.name }" maxlength="50"/>
                <span id="indicatorsNameTip" style="color:red;">*</span>
            </div>
        	</div>
        </div>
        <div class="content_group">
            <div class="span4">
                <label class="control-label">部件名称:</label>
                <div class="controls imagebox" >
                    <input id="partName" type="text" onblur="checkNotNull(this)" value="${indVO.partsPO.name }" maxlength="50"/>
                	<span id="partNameTip" style="color:red;">*</span>
                    <span class="imgbtn"><img src="${indVO.partsPO.imageurl }" style="" title="点击显示图标" class="tubiao" /></span>
                    <div class="box_accessories">
                        <a><img src="../../images/accessories/cpu.png" /></a>
                        <a><img src="../../images/accessories/Memory.png"  /></a>
                        <a><img src="../../images/accessories/Network.png"  /></a>
                        <a><img src="../../images/accessories/Hard.png"  /></a>
                        <a><img src="../../images/accessories/Power.png" /></a>
                        <a><img src="../../images/accessories/Pic.png"  /></a>
                        <a><img src="../../images/accessories/System_back.png"  /></a>
                        <a><img src="../../images/accessories/default.png"  /></a>
                    </div>
                </div>
            </div>
        </div>
        <div class="content_group">
        	<div class="span4">
	            <label class="control-label">指标项编码:</label>
	            <div class="controls">
	                <input id="indicatorsCode" type="text" value="${indVO.bcode }" onblur="checkBecodeExist();" maxlength="50"/>
	                <span id="regularTip" style="color:red;">*</span>
	            </div>
	    	</div>
        </div>
        <div class="last_group">
            <div class="span4">
                <label class="control-label">类型:</label>
                <div class="controls">
                	<label class="control-label">${indVO.lookupCdePO.cdeName }</label>
                </div>
            </div>
        </div>
        <c:if test='${indVO.lookupCdePO.cdeName eq "配置" }'>
        	<div class="last_group" id="baseLineDiv">
		        <div class="span4">
		            <label class="control-label">是否有基线:</label>
		            <div class="controls">
		            <c:choose>
		            	<c:when test="${indVO.baseLine }">
		            		<label class="radio inline" style="padding-top:0px;"><input type="radio" name="baseLine" value="1" checked="checked">是</label>
							<label class="radio inline" style="padding-top:0px;"><input type="radio" name="baseLine" value="0" >否</label>
		            	</c:when>
		            	<c:otherwise>
		            		<label class="radio inline" style="padding-top:0px;"><input type="radio" name="baseLine" value="1">是</label>
							<label class="radio inline" style="padding-top:0px;"><input type="radio" name="baseLine" value="0" checked="checked">否</label>
		            	</c:otherwise>
		            </c:choose>
		            </div>
		        </div>
	    	</div>
        </c:if>
        <c:if test='${indVO.lookupCdePO.cdeName eq "进程" }'>
        	<div class="last_group" id="processType">
		        <div class="span4">
		            <label class="control-label">进程类型:</label>
		            <div class="controls">
					<c:choose>
		            	<c:when test='${indVO.processType eq "93f" }'>
			            	<label class="radio inline" style="padding-top:0px;"><input type="radio" name="processType" disabled value="93f" checked="checked">性能</label>
							<label class="radio inline" style="padding-top:0px;"><input type="radio" name="processType" disabled value="93b" >状态</label>
		            	</c:when>
		            	<c:otherwise>
			            	<label class="radio inline" style="padding-top:0px;"><input type="radio" name="processType" disabled value="93f">性能</label>
							<label class="radio inline" style="padding-top:0px;"><input type="radio" name="processType" disabled value="93b" checked="checked">状态</label>
		            	</c:otherwise>
		            </c:choose>
		            </div>
		        </div>
    		</div>
        </c:if>
    </div>
   	<c:if test='${indVO.lookupCdePO.cdeName eq "进程" }'>
	   	<c:forEach items="${platformDefThreshold}" var="platThreshold">
	   		<c:if test="${platThreshold.defaultThreshold !=null }">
	   		<!--进程-->
		    <div class="content_condition" id="proc_${platThreshold.platId }">
		        <p class="current_title">${platThreshold.name }</p>
		        <div style="border-top: 1px solid #eee">
		            <div class="content_condition" id="Performance${platThreshold.platId }" style="margin:2px 5px;">
		                <div class="content_group">
		                    <div class="span12">
		                        <label class="control-label">warning:</label>
		                        <div class="controls">
		                            在<input type="text" value="${platThreshold.defaultThreshold.warningInterval }" id="proc_perf_warning_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="${platThreshold.defaultThreshold.warningCounts }" id="proc_perf_warning_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="${platThreshold.defaultThreshold.waringFrom }" id="proc_perf_warning_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="${platThreshold.defaultThreshold.waringTo }" id="proc_perf_warning_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		                <div class="content_group">
		                    <div class="span12">
		                        <label class="control-label">error:</label>
		                        <div class="controls">
		                            在<input type="text" value="${platThreshold.defaultThreshold.errorInterval }" id="proc_perf_error_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="${platThreshold.defaultThreshold.errorCounts }" id="proc_perf_error_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="${platThreshold.defaultThreshold.errorFrom }" id="proc_perf_error_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="${platThreshold.defaultThreshold.errorTo }" id="proc_perf_error_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		                <div class="content_group">
		                    <div class="span12">
		                        <label class="control-label">critical:</label>
		                        <div class="controls">
		                            在<input type="text" value="${platThreshold.defaultThreshold.criticalInterval }" id="proc_perf_critical_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="${platThreshold.defaultThreshold.criticalCounts }" id="proc_perf_critical_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="${platThreshold.defaultThreshold.criticalFrom }" id="proc_perf_critical_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="${platThreshold.defaultThreshold.criticalTo }" id="proc_perf_critical_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		                <div class="last_group">
		                    <div class="span12">
		                        <label class="control-label">lower warning:</label>
		                        <div class="controls">
		                            在<input type="text" value="${platThreshold.defaultThreshold.lowerWarningInterval }" id="proc_perf_lower_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="${platThreshold.defaultThreshold.lowerWarningCounts }" id="proc_perf_lower_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="${platThreshold.defaultThreshold.lowerWarningFrom }" id="proc_perf_lower_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="${platThreshold.defaultThreshold.lowerWarningTo }" id="proc_perf_lower_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <div class="content_condition" id="State${platThreshold.platId }" style="margin:2px 5px;border: 0!important;display:none;">
		                <div class="last_group">
			                <button class="press_btn1" name="proc_stat_button" onclick="addWarningKeyWord('proc_state_tbody_${platThreshold.platId }');" style="float:right;margin-bottom:3px;">
			                	<i class="add top_current"></i>添加关键字
			                </button>
		            	</div>
		                <div class="content_table">
		                    <table class="table table-striped table-bordered table-hover table-ellipsis details">
		                        <thead>
		                        <tr>
		                            <th>关键字</th>
		                            <th>类别</th>
		                            <th>告警级别</th>
		                            <th width="50px">操作</th>
		                        </tr>
		                        </thead>
		                        <tbody id="proc_state_tbody_${platThreshold.platId }">
		                        </tbody>
		                    </table>
		                </div>
		            </div>
		        </div>
		    </div>
	   		</c:if>
	   		<c:if test="${platThreshold.thresholdStates !=null}">
	   		<!--进程-->
		    <div class="content_condition" id="proc_${platThreshold.platId }">
		        <p class="current_title">${platThreshold.name }</p>
		        <div style="border-top: 1px solid #eee">
		            <div class="content_condition" id="Performance${platThreshold.platId }" style="margin:2px 5px;border: 0!important;display:none;">
		                <div class="content_group">
		                    <div class="span12">
		                        <label class="control-label">warning:</label>
		                        <div class="controls">
		                            在<input type="text" value="" id="proc_perf_warning_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="" id="proc_perf_warning_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="" id="proc_perf_warning_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="" id="proc_perf_warning_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		                <div class="content_group">
		                    <div class="span12">
		                        <label class="control-label">error:</label>
		                        <div class="controls">
		                            在<input type="text" value="" id="proc_perf_error_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="" id="proc_perf_error_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="" id="proc_perf_error_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="" id="proc_perf_error_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		                <div class="content_group">
		                    <div class="span12">
		                        <label class="control-label">critical:</label>
		                        <div class="controls">
		                            在<input type="text" value="" id="proc_perf_critical_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="" id="proc_perf_critical_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="" id="proc_perf_critical_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="" id="proc_perf_critical_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		                <div class="last_group">
		                    <div class="span12">
		                        <label class="control-label">lower warning:</label>
		                        <div class="controls">
		                            在<input type="text" value="" id="proc_perf_lower_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            分钟内超过<input type="text" value="" id="proc_perf_lower_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
		                            次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
		                            (<input type="text" value="" id="proc_perf_lower_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
		                            ~<input type="text" value="" id="proc_perf_lower_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <div class="content_condition" id="State${platThreshold.platId }" style="margin:2px 5px;border: 0!important;">
		                <button class="press_btn1" name="stat_button" onclick="addWarningKeyWord('proc_state_tbody_${platThreshold.platId }');" style="float:right;margin-bottom:3px;display:block;">
	                		<i class="add top_current"></i>添加关键字
	                	</button>
		                <div class="content_table" style="overflow:visible!important;">
		                    <table class="table table-striped table-bordered table-hover table-ellipsis details">
		                        <thead>
		                        <tr>
		                            <th>关键字</th>
		                            <th>类别</th>
		                            <th>告警级别</th>
		                            <th width="50px">操作</th>
		                        </tr>
		                        </thead>
		                        <tbody id="proc_state_tbody_${platThreshold.platId }">
		                        <c:forEach items="${platThreshold.thresholdStates }" var="state" varStatus="statu">
		                        	<tr>
									    <td><input type="text" value="${ state.keyWords}" onblur="checkNameList(this);" style="border:1px #FFFFFF solid;width:96%!important;margin:0!important;"/></td>
									    <td>
									    	<!-- 21a,21b,21c对应码表中的值 -->
									        <input type="radio" value="21a" onchange="contralStateLevel(this);" onblur="checkNotNull(this);" ${ state.stateType=="21a"?"checked":""} name="proc_state_tbody_${platThreshold.platId }_type${statu.index}"/>黑名单&nbsp;&nbsp;
									        <input type="radio" value="21b" onchange="contralStateLevel(this);" onblur="checkNotNull(this);" ${ state.stateType=="21b"?"checked":""} name="proc_state_tbody_${platThreshold.platId }_type${statu.index}"/>白名单&nbsp;&nbsp;
									        <input type="radio" value="21c" onchange="contralStateLevel(this);" onblur="checkNotNull(this);" ${ state.stateType=="21c"?"checked":""} name="proc_state_tbody_${platThreshold.platId }_type${statu.index}"/>未知
									    </td>
									    <td>
									    	<input type="radio" value="1" onblur="checkNotNull(this);" ${ state.stateType=="21b"||state.stateType=="21c"?"disabled":""} ${ state.alarmLevel==1?"checked":""} name="proc_state_tbody_${platThreshold.platId }_leval${statu.index}"/>warning&nbsp;&nbsp;
									        <input type="radio" value="2" onblur="checkNotNull(this);" ${ state.stateType=="21b"||state.stateType=="21c"?"disabled":""} ${ state.alarmLevel==2?"checked":""} name="proc_state_tbody_${platThreshold.platId }_leval${statu.index}"/>error&nbsp;&nbsp;
									        <input type="radio" value="3" onblur="checkNotNull(this);" ${ state.stateType=="21b"||state.stateType=="21c"?"disabled":""} ${ state.alarmLevel==3?"checked":""} name="proc_state_tbody_${platThreshold.platId }_leval${statu.index}"/>critical
									    </td>
									    <td>
					                		<i class="Del content_current" onclick="$(this).closest('tr').remove();" title="删除"></i>
					                	</td>
									</tr>
								</c:forEach>
		                        </tbody>
		                    </table>
		                </div>
		            </div>
		        </div>
		    </div>
	   		</c:if>
	    </c:forEach>
   	</c:if>
   	<c:if test='${indVO.lookupCdePO.cdeName eq "性能" }'>
   	<c:forEach items="${platformDefThreshold}" var="platThreshold">
   		<!--性能-->
	    <div class="content_condition" id="perf_${platThreshold.platId }">
	        <p class="current_title">${platThreshold.name }</p>
	        <div>
	            <div class="content_group" style="border-top: 1px solid #eee">
	                <div class="span12">
	                    <label class="control-label" style="width: 12%">warning:</label>
	                    <div class="controls">
	                        在<input type="text" value="${platThreshold.defaultThreshold.warningInterval }" id="perf_warning_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        分钟内超过<input type="text" value="${platThreshold.defaultThreshold.warningCounts }" id="perf_warning_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.waringFrom }" id="perf_warning_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.waringTo }" id="perf_warning_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">error:</label>
	                    <div class="controls">
	                        在<input type="text" value="${platThreshold.defaultThreshold.errorInterval }" id="perf_error_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        分钟内超过<input type="text" value="${platThreshold.defaultThreshold.errorCounts }" id="perf_error_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.errorFrom }" id="perf_error_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.errorTo }" id="perf_error_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">critical:</label>
	                    <div class="controls">
	                        在<input type="text" value="${platThreshold.defaultThreshold.criticalInterval }" id="perf_critical_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        分钟内超过<input type="text" value="${platThreshold.defaultThreshold.criticalCounts }" id="perf_critical_num_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.criticalFrom }" id="perf_critical_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.criticalTo }" id="perf_critical_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="last_group">
	                <div class="span12">
	                    <label class="control-label">lower warning:</label>
	                    <div class="controls">
	                        在<input type="text"  value="${platThreshold.defaultThreshold.lowerWarningInterval }" id="perf_lower_intime_${platThreshold.platId }" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        分钟内超过<input type="text"  value="${platThreshold.defaultThreshold.lowerWarningCounts }" id="perf_lower_num_${platThreshold.platId }" onblur="volidateInterval(this);" onblur="volidateInterval(this);" class="input-mini offset-mini"/>
	                        次告警&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.lowerWarningFrom }" id="perf_lower_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.lowerWarningTo }" id="perf_lower_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>
	</c:forEach>
   	</c:if>
   	<c:if test='${indVO.lookupCdePO.cdeName eq "状态" }'>
   	<c:forEach items="${platformDefThreshold}" var="platThreshold">
  		<!--状态-->
	    <div class="content_condition" id="stat_${platThreshold.platId }">
	        <p class="current_title">${platThreshold.name }</p>
	        <div style="border-top: 1px solid #eee">
	            <div class="content_condition" id="States" style="margin:2px 5px;border: 0!important;">
	                <button class="press_btn1" name="stat_button" onclick="addWarningKeyWord('state_tbody_${platThreshold.platId }');" style="float:right;margin-bottom:3px;display:block;">
	                	<i class="add top_current"></i>添加关键字
	                </button>
	                <div class="content_table" style="overflow:visible!important;">
	                    <table class="table table-striped table-bordered table-hover table-ellipsis details">
	                        <thead>
	                        <tr>
	                            <th>关键字</th>
	                            <th>类别</th>
	                            <th>告警级别</th>
	                            <th width="50px">操作</th>
	                        </tr>
	                        </thead>
	                        <tbody id="state_tbody_${platThreshold.platId }">
	                        <c:forEach items="${platThreshold.thresholdStates }" var="state" varStatus="statu">
	                        	<tr>
								    <td><input type="text" value="${ state.keyWords}" onblur="checkNameList(this);" style="border:1px #FFFFFF solid;width:96%!important;margin:0!important;"/></td>
								    <td>
								        <input type="radio" value="21a" onblur="checkNotNull(this);" ${ state.stateType=="21a"?"checked":""} name="proc_state_tbody_${platThreshold.platId }_type${statu.index}"/>黑名单&nbsp;&nbsp;
								        <input type="radio" value="21b" onblur="checkNotNull(this);" ${ state.stateType=="21b"?"checked":""} name="proc_state_tbody_${platThreshold.platId }_type${statu.index}"/>白名单&nbsp;&nbsp;
								        <input type="radio" value="21c" onblur="checkNotNull(this);" ${ state.stateType=="21c"?"checked":""} name="proc_state_tbody_${platThreshold.platId }_type${statu.index}"/>未知
								    </td>
								    <td>
								    	<input type="radio" value="1" onblur="checkNotNull(this);" ${ state.alarmLevel==1?"checked":""} name="proc_state_tbody_${platThreshold.platId }_leval${statu.index}"/>warning&nbsp;&nbsp;
								        <input type="radio" value="2" onblur="checkNotNull(this);" ${ state.alarmLevel==2?"checked":""} name="proc_state_tbody_${platThreshold.platId }_leval${statu.index}"/>error&nbsp;&nbsp;
								        <input type="radio" value="3" onblur="checkNotNull(this);" ${ state.alarmLevel==3?"checked":""} name="proc_state_tbody_${platThreshold.platId }_leval${statu.index}"/>critical
								    </td>
								    <td>
				                		<i class="Del content_current" onclick="$(this).closest('tr').remove();" title="删除"></i>
				                	</td>
								</tr>
							</c:forEach>
	                        </tbody>
	                    </table>
	                </div>
	            </div>
	        </div>
	    </div>
	</c:forEach>
   	</c:if>
   	<c:if test='${indVO.lookupCdePO.cdeName eq "容量" }'>
   	<c:forEach items="${platformDefThreshold}" var="platThreshold">
  		<!--容量-->
	    <div  class="content_condition" id="capa_${platThreshold.platId }">
	        <p class="current_title">${platThreshold.name }</p>
	        <div style="border-top: 1px solid #eee">
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">warning:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.waringFrom}" id="capa_warning_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.waringTo }" id="capa_warning_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">error:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.errorFrom }" id="capa_error_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.errorTo }" id="capa_error_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">critical:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.criticalFrom }" id="capa_critical_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.criticalTo }" id="capa_critical_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="last_group">
	                <div class="span12">
	                    <label class="control-label">lower warning:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.lowerWarningFrom }" id="capa_lower_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.lowerWarningTo }" id="capa_lower_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>
	</c:forEach>
   	</c:if>
   	<c:if test='${indVO.lookupCdePO.cdeName eq "数据库" }'>
   		<c:forEach items="${platformDefThreshold}" var="platThreshold">
  		<!--数据库-->
	    <div  class="content_condition" id="db_default">
	        <p class="current_title">默认阀值</p>
	        <div style="border-top: 1px solid #eee">
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">warning:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.waringFrom}" id="db_warning_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.waringTo }" id="db_warning_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">error:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.errorFrom }" id="db_error_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.errorTo }" id="db_error_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="content_group">
	                <div class="span12">
	                    <label class="control-label">critical:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.criticalFrom }" id="db_critical_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.criticalTo }" id="db_critical_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	            <div class="last_group">
	                <div class="span12">
	                    <label class="control-label">lower warning:</label>
	                    <div class="controls">
	                        阀值范围
	                        (<input type="text" value="${platThreshold.defaultThreshold.lowerWarningFrom }" id="db_lower_from_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>
	                        ~<input type="text" value="${platThreshold.defaultThreshold.lowerWarningTo }" id="db_lower_to_${platThreshold.platId }" onblur="volidateRange(this)" class="input-mini offset-mini"/>)
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>
	    </c:forEach>
   	</c:if>
</div>
<div class="btn_bottom">
    <div class="spanbtn">
        <button class="press_btn1" onclick="saveIndicators()"><i class="save top_current"></i>保存</button>
        <button class="press_btn2" onclick="closeIndicators()"><i class="del top_current"></i>关闭</button>
    </div>
</div>
</body>
<script src="edit_index.js"></script>
</html>